/*
 * @Author: your name
 * @Date: 2021-01-06 14:11:24
 * @LastEditTime: 2021-04-03 23:03:24
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \express-seed\routes\web\index.js
 */
// 引入路由
const imgRouter = require('./img')
const homeRouter = require('./home')
const staRouter = require('./sta')
const projectCodeRouter = require('./projectCode')
const menuRouter = require('./menu')
const stateRouter = require('./state')
// const express = require('express')
// var app = express();
// 使用路由
module.exports = (app) => {
    app.use('/api/web', homeRouter)
    app.use('/api/web/img', imgRouter)
    app.use('/api/web/sta', staRouter)
    app.use('/api/web/project_code', projectCodeRouter)
    app.use('/api/web/menu', menuRouter)
    app.use('/api/web/state', stateRouter)
}
